package com.zhongli.devplatform.service.impl.sys;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhongli.devplatform.mapper.sys.ReadVideoMapper;
import com.zhongli.devplatform.po.sys.ReadVideoPO;
import com.zhongli.devplatform.service.imp.sys.ReadVideoService;
import com.zhongli.devplatform.vo.sys.VideoVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wy
 * @since 2020/8/2
 */
@Service
public class ReadVideoServiceImpl extends ServiceImpl<ReadVideoMapper, ReadVideoPO> implements ReadVideoService {

    @Resource
    private ReadVideoMapper videoMapper;

    @Override
    public List<VideoVO> favoriteVideoList(Integer currentStuId, Integer subjectId) {
        return videoMapper.favoriteVideoList(currentStuId,subjectId);
    }
}
